package messagesPacks;


import messagesPacks.GenericMessage.msgType;
import Entity.User;

/**
 * This class representing a LibrarianSearchUserMessage
 * Date: 2/1/2013
 * @author Tali Pisarev
 *
 */
public class LibrarianSearchUserMessage extends GenericMessage
{

    private static final long serialVersionUID = 1L;
	
    /**User is entity that includes all the details of user*/
    private  User user;
    /**save the Query result*/
	private int queryUserSearchResult=-10 ;
	
///*************************************************************************************************************
	
/**
* Constructor the LibrarianSearchUserMessage with default values
* @param String ID
*/	

	public LibrarianSearchUserMessage(String id)
	{
		this.type = msgType.LibrarianSearchUserMSG; 
		this.user= new User();
		this.user.setID(id);
	}

//===================================================================	
//  Getters & Setters
//===================================================================		
	
	public User getUser()
	{
		return user;
	}

	public void setUser(User user) 
	{
		this.user = user;
	}

	public int getQueryUserSearchResult()
	{
		return queryUserSearchResult;
	}


	public void setQueryUserSearchResult (int queryUserSearchResult)
	{
		this.queryUserSearchResult = queryUserSearchResult;
	}
}